home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
qtools.arc
/
QMAC208.ARC
/
CHANGE.QM
< prev
next >
Wrap
Text File
|
1990-08-24
|
4KB
|
66 lines
*
* CHANGE: AUTOEXEC SEARCH/REPLACE on several files.
*
* This macro, when placed first in a QMac macro file, and executed using
* QEdit's /E command line option, will do a global search and replace on
* up to 100 files loaded from the command line.
*
* (You could make it do up to 1000 files, by adding more of the lines
* which are repeated below).
*
* To use:
* o Make sure this macro is first in your macro file.
* o Compile the macro file with QMAC:
*
* QMAC CHANGE.MAC CHANGE.QM B N
*
* o Run QEdit from the command line in this way:
*
* Q first.fil second.fil third.fil /Echange.mac
*
* QEdit will stop, ask for the search & replace parameters,
* and then execute the change on all files you specified
* to load.
*
* Of course you could specify wildcards such as *.* on the
* command line too, as long as you have the QCONFIG option
* "Load wildcarded filespecs from the command line?" set
* to YES in your copy of QEdit.
*
* All files are saved to disk, and the editor exits
* at the end.
*
* NOTE: You need QMAC version 2.x or higher to use this macro.
*
@F1 MacroBegin
FindReplace Pause Return * Ask for the find text
Pause Return * Ask for the replacement text
Pause EndLine "N" Return * Make sure No stop, and execute.
File * Save this file to disk & go to next
RepeatFind File * Repeat & Save. Then 98 more times.
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File RepeatFind File RepeatFind File
RepeatFind File RepeatFind File